package com.haima.ziliao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.haima.ziliao.mapper.PZizhiMapper;
import com.haima.ziliao.domain.PZizhi;
import com.haima.ziliao.service.IPZizhiService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 资质证书Service业务层处理
 * 
 * @author hima
 * @date 2024-12-10
 */
@Service
public class PZizhiServiceImpl extends ServiceImpl<PZizhiMapper, PZizhi> implements IPZizhiService
{
    @Autowired
    private PZizhiMapper pZizhiMapper;

    /**
     * 查询资质证书
     * 
     * @param id 资质证书主键
     * @return 资质证书
     */
    @Override
    public PZizhi selectPZizhiById(Long id)
    {
        return pZizhiMapper.selectPZizhiById(id);
    }

    /**
     * 查询资质证书列表
     * 
     * @param pZizhi 资质证书
     * @return 资质证书
     */
    @Override
    public List<PZizhi> selectPZizhiList(PZizhi pZizhi)
    {
        return pZizhiMapper.selectPZizhiList(pZizhi);
    }

    /**
     * 新增资质证书
     * 
     * @param pZizhi 资质证书
     * @return 结果
     */
    @Override
    public int insertPZizhi(PZizhi pZizhi)
    {
        return pZizhiMapper.insertPZizhi(pZizhi);
    }

    /**
     * 修改资质证书
     * 
     * @param pZizhi 资质证书
     * @return 结果
     */
    @Override
    public int updatePZizhi(PZizhi pZizhi)
    {
        return pZizhiMapper.updatePZizhi(pZizhi);
    }

    /**
     * 批量删除资质证书
     * 
     * @param ids 需要删除的资质证书主键
     * @return 结果
     */
    @Override
    public int deletePZizhiByIds(Long[] ids)
    {
        return pZizhiMapper.deletePZizhiByIds(ids);
    }

    /**
     * 删除资质证书信息
     * 
     * @param id 资质证书主键
     * @return 结果
     */
    @Override
    public int deletePZizhiById(Long id)
    {
        return pZizhiMapper.deletePZizhiById(id);
    }
}
